package com.ae.service.impl;

import com.ae.mapper.SubjectMapper;
import com.ae.pojo.Subject;
import com.ae.service.SubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author bug-termination
 * @date 2020-10-19 17:24
 */
@Service
public class SubjectServiceImpl implements SubjectService {
    @Autowired
    private SubjectMapper subjectMapper;
    @Override
    public Subject selectByPrimaryKey(Integer id) {
        return subjectMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Subject> selectAll() {
        return subjectMapper.selectAll();
    }
}
